<?php
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
/*
	[天生创想] (C)2008-2011 515158 Inc.
	This is NOT a freeware, use is subject to license terms
    URL:http://www.515158.com/
*/

//if ( !is_superadmin() && !check_purview('manage_link') ) prompt('对不起，你没有权限执行本操作！');
//初始化信息，进入表单页面
empty($do) && $do = 'list';
if ($do == 'edit') {
	$id = getGP('id','G','int');
	$conference = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."conference  WHERE id = '$id'");
	include_once('template/key.php');

} elseif ($do == 'save') {
	
	$savetype = getGP('savetype','P');
	$id = getGP('id','P','int');
	$startdate = getGP('startdate','P')." ".getGP('starttime1','P').":".getGP('starttime2','P');
	$enddate = getGP('enddate','P')." ".getGP('endtime1','P').":".getGP('endtime2','P');
	$conferenceroom = getGP('conferenceroom','P');
	$type = getGP('type','P');
	$conference = array(
		'attendance' => $attendance,
		'startdate' => $startdate,
		'enddate' => $enddate,
		'conferenceroom' => $conferenceroom,
		'type' => $type
	);
	update_db('conference',$conference, array('id' => $id));
	goto_page('admin.php?ac=index&fileurl=conference');
	

}

?>